package com.taotao.portal.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.taotao.portal.service.CatService;
import com.taotao.rest.webservice.ItemCatWebService;
import com.taotao.rest.webservice.ItemCatWebService_Service;

@Controller
public class CatController {
	
	@Autowired
	private CatService catService;
	@RequestMapping(value = "/rest/itemcat/all",produces="text/html;charset=UTF-8",method=RequestMethod.GET)
	@ResponseBody
	public String getCatList(String callback) {
		return catService.getCatList(callback);
	}
}
